home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / geom_lib / makefile.ami < prev    next >
Encoding:
Makefile  |  1993-12-30  |  2.5 KB  |  102 lines

  1. #
  2. # This is the make file for the prsr. lib subdirectory.
  3. #
  4. #                Gershon Elber, Aug 1991
  5. #
  6.  
  7. #-----
  8. #
  9. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  10. # is sourced from several directories relative path specification will
  11. # be simple wrong.
  12. #
  13.  
  14. SRC_DIR = Work:T/Irit
  15. #
  16. # All libraries created will be installed into the LIB_DIR directory.
  17. #
  18. LIB_DIR = $(SRC_DIR)/lib
  19.  
  20. #
  21. # All includes files associated with the installed libraries will be
  22. # installed into the INC_DIR directory.
  23. #
  24. INC_DIR = $(SRC_DIR)/inc
  25.  
  26. #
  27. # All binaries created will be installed into the BIN_DIR directory.
  28. #
  29. BIN_DIR = $(SRC_DIR)/bin
  30.  
  31. #
  32. # Uncomment the correct set of variables to be used or modify it for
  33. # your system.
  34. #
  35. # -D flags:
  36. #
  37. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  38. #
  39. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  40. #    be used.
  41. #
  42. #  Emulation to the following function are available by defining the
  43. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  44. # -DGETCWD - if getcwd is not defined in this system.
  45. # -DSTRSTR - if strstr is not defined in this system.
  46. # -DSTRDUP - if strdup is not defined in this system.
  47. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  48. #
  49. # -DTIMES - if times is defined in your system, otherwise uses time.
  50. #
  51. # -DRAND - if the (s)rand random number generator exists.
  52. # -DRAND48 - ?rand48 random number generators exists.
  53. #    If non of RAND or RAND48 are defined, (s)random is used.
  54. #
  55. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  56. #
  57. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  58. #    varargs.h.
  59. #
  60. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  61. #
  62. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  63. #
  64. # Other, possibly useful defines (for c code development):
  65. #
  66. # -DDEBUG - for some debugging functions in the code (that can be invoked
  67. #        from a debugger).
  68. #
  69.  
  70. #
  71. # Flags for Amiga using gcc
  72. #
  73. CC = gcc
  74. DFLAGS = -Dmain=mymain -DTIMES
  75. CFLAGS = $(DFLAGS) -m68040 -m68881
  76. MORELIBS = $(LIB_DIR)/libamg.a
  77. GRAPDRVS = nuldrvs amidrvs
  78.  
  79. #
  80. # Default rule for compilation.
  81. #
  82. .c.o:
  83.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  84.  
  85. #
  86. # All libraries.
  87. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
  88. #-----
  89.  
  90. OBJS = bbox.o convex.o geomat3d.o geomvals.o intrnrml.o poly_cln.o
  91.  
  92. libgeom.a: $(OBJS)
  93.     ar rcv libgeom.a $(OBJS)
  94.     -ranlib libgeom.a
  95.  
  96. install: libgeom.a
  97.     Copy CLONE libgeom.a $(LIB_DIR)
  98.     Delete libgeom.a
  99.     Copy \#?.h $(INC_DIR)
  100.  
  101. # Dependencies starts here - do not touch, generated automatically.
  102.